﻿//$("button").click(function () {
    $.ajax({
        url: "/api/allmovies",


        success: function (result) {
            //$("#div1").html(result);
            console.log("res: ", result);
            
            var strHolder = "";
            for (var x in result) {
                //console.log(x);
                strHolder += "<div><strike>" + result[x].name + "</strike></div><br>";
            }
            $("#myflicks").html(strHolder);
        }
    });
//});